package org.ranshiyan.controller;

import jdk.nashorn.internal.ir.annotations.Reference;
import org.ranshiyan.service.LockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/label")
public class LockController {

    @Autowired
    private LockService lockService;



    @GetMapping("kz/{key}")
    public void kz1(@PathVariable String key){
        lockService.threadPoll(key);
    }
}
